// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.TextUtils;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;
import com.nnee.p_fk.cls_ActivityEx;
import com.nnee.p_l.p_b.cls_a;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            au

public class cls_SystemPushMessageActivity extends cls_ActivityEx
{

    public cls_SystemPushMessageActivity()
    {
        b = null;
        c = null;
        d = null;
        e = null;
        f = null;
        g = null;
        h = new cls_au(this);
    }

    public static Intent a(Context context, Parcelable parcelable)
    {
        Intent intent = new Intent(context, com.nnee.p_pr.p_activity.cls_SystemPushMessageActivity.class);
        intent.putExtra("extra_message", parcelable);
        return intent;
    }

    static com.nnee.p_pr.p_atom.cls_PRISNotification.cls_PrisMessage a(cls_SystemPushMessageActivity systempushmessageactivity)
    {
        return systempushmessageactivity.b;
    }

    public static void a(Context context)
    {
        context.startActivity(new Intent(context, com.nnee.p_pr.p_activity.cls_SystemPushMessageActivity.class));
    }

    private void b()
    {
        b = (com.nnee.p_pr.p_atom.cls_PRISNotification.cls_PrisMessage)getIntent().getParcelableExtra("extra_message");
        g = getString(0x7f0a003a);
        c = (TextView)findViewById(0x7f0d00b9);
        d = (TextView)findViewById(0x7f0d00ba);
        e = (WebView)findViewById(0x7f0d00bb);
        f = (Button)findViewById(0x7f0d00bc);
        f.setOnClickListener(h);
        setTitle(b.a());
        java.util.Date date = b.f();
        if(date != null)
            c.setText(com.nnee.l.b.a.a(date, g));
        else
            c.setVisibility(8);
        if(b.e())
        {
            d.setVisibility(0);
            d.setText(b.b());
        } else
        {
            e.setVisibility(0);
            e.loadDataWithBaseURL(null, b.b(), "text/html", "UTF-8", null);
        }
        if(!TextUtils.isEmpty(b.d()))
            f.setVisibility(0);
    }

    public void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        setContentView(0x7f030039);
        b();
    }

    protected void onDestroy()
    {
        super.onDestroy();
        b = null;
        c = null;
        d = null;
        if(e != null)
        {
            e.destroy();
            e = null;
        }
        f = null;
        g = null;
    }

    public static final String a = "extra_message";
    private com.nnee.p_pr.p_atom.cls_PRISNotification.cls_PrisMessage b;
    private TextView c;
    private TextView d;
    private WebView e;
    private Button f;
    private String g;
    private android.view.View.OnClickListener h;
}
